-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: rework Avatar, User and UserLabel components #1991
base: next
Are you sure you want to change the base?
Conversation
Preview is ready. |
Visual Tests Report is ready. |
9c488e7
to
4c23e0b
Compare
387a2ec
to
b6b7654
Compare
b6b7654
to
c2dec6b
Compare
&__icon { | ||
color: var(--g-avatar-color, var(--_--color)); | ||
|
||
& > svg { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we need it? Looks unreliable
@@ -1,6 +1,7 @@ | |||
@use 'sass:map'; | |||
|
|||
$sizes: ( | |||
'3xs': 16px, | |||
'2xs': 20px, | |||
'xs': 24px, | |||
's': 28px, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that we wanted to change this sizes like in Button?
| `--g-user-line-height` | Name and description line height | | ||
| Name | Description | | ||
| :--------------------------------- | :-------------------------------- | | ||
| `--g-user-gap` | Gap between avatar and text block | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about --g-user-avatar-offset
name for this?
Ticket: DATAUI-2913
Breaking changes
Avatar
imgUrl
,icon
ortext
s
size2xs
sizeUser
m
sizexl
sizeUserLabel
children
property withtext
Features
Avatar
3xs
sizeAriaLabelingProps
--g-avatar-border-width
,--g-avatar-inner-border-width
and--g-avatar-font-weight
to CSS APIUser
3xs
sizeAriaLabelingProps
UserLabel
3xs
and2xs
sizesdescription
property